﻿using System;

namespace HobSoft.SoccerBet2014.Client.Service
{
    using Domain.ClientService;
    using Domain.Schedule;
    using Common;
    public class BetSiteServiceCallback : IBetSiteServiceCallback
    {
        public event Action<byte, string, BetSiteRequestType, DateTime> OnSiteLogChanged;

        public void OnSiteLogChange(byte bmId, string account, BetSiteRequestType type, DateTime updateTime)
        {
            BetApplication.Current.Dispatcher.Invoke(() =>
            {
                if (OnSiteLogChanged != null)
                    OnSiteLogChanged(bmId, account, type, updateTime);
            });
        }
    }
}
